import React from 'react'
import millet from './pages/millet'
import login from './pages/login'
import register from './pages/register'

import {
    HashRouter,
    Switch,
    Route
} from 'react-router-dom'
class Router extends React.Component {
    render() {
        return (
            <div>
                <HashRouter>
                    < Switch >
                        <Route path="/login" component={login}></Route>
                        <Route path="/register" component={register}></Route>
                        <Route path="/" component={millet}></Route>
                    </Switch >
                </HashRouter>
            </div>
        )
    }
}
export default Router;